q = int(input())
n = 1
an = 1

while n <= 10:
    print(an)
    an *= q
    n += 1